package servlet.announce;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import bean.control.AnnounceMgr;
import bean.entity.Announce;

@SuppressWarnings("serial")
public class AnnounceContentServlet extends HttpServlet {
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		List<Announce> annList = AnnounceMgr.queryAllAnnounceOrderByPoTime();
		
		req.setAttribute("annList", annList);
		req.getRequestDispatcher("./announce/announceContent.jsp").forward(req, resp);
	}
}
